|
|
|
|
|
|
|
Caution When you use the RestoreToolbar method, any toolbar buttons without an ImageList reference won't be displayed. You can make them visible again by using the Customize Toolbar dialog box's Reset button. |
|
|
|
|
|
|
|
|
|
If your application allows multiple users, you can use these methods to save more than one version of the toolbar. You can change the subkey or value settings, which causes the toolbar to keep separate settings in the Registry file. |
|
|
|
|
|
|
|
|
Finally, one of the newest features to be added to Visual Basic is the ToolTip textbox feature. Almost every object and control in Visual Basic can display ToolTips. With the toolbar, if you set the ShowTips property to True, you can then specify unique text for each toolbar button. Text placed in the ToolTipText property for a button is displayed during runtime when the mouse pointer remains on a button for a short period of time (see Figure 4.10.) |
|
|
|
|
|
|
|
|
Figure 4.10.
Use ToolTips to inform users what
function each button performs. |
|
|
|
|
|
|
|
|
You're now halfway through the process of creating an easy-to-use form for the application. Save this project because you'll be using it to add the menu in the next section. |
|
|
|
|
|
|
|
|
Using the Coolbar Control |
|
|
|
|
|
|
|
|
The Coolbar control is the newest of the Visual Basic Toolbar controls that you can use in an application. This control provides you with a toolbar that can contain multiple toolbars or bands as used in Internet Explorer (see Figure 4.11). |
|
|
|
|
|
|
|
|
Actually, the Coolbar control is a container control that contains two or more bands that can be resized and moved by the user. Each of these bands will contain a single Child control. Depending on how you use the coolbar, the Child control can be any number of standard controls available. However, if you want to have several different button bars displayed on separate bands, you can use the Toolbar control to add buttons. To add |
|
|
|
|
|